package com.example.user.entity;

import com.example.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true) // 继承父类属性
@TableName("t_user") // 指定表名
public class User extends BaseEntity {
    private Long id;
    private String username;
    private String password;
    private String email;
    private Integer age;
    private String phone; //UserDTO无该字段 手动修改-数据库字段 或 修改DTO

}
